package test1;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-23
 * Time: 8:51
 */
public class CheckDateS {
    /**
     * 转换日期为指定格式
     * @param time
     * @return
     */
    public LocalDate changeDateFormat(String time) throws Exception{
        LocalDate parse = LocalDate.parse(time);
        return parse;
    }
}

